#include<bits/stdc++.h>

using namespace std;

/**
 * 字符串连接函数的实现，效果相当于b+=a;
 * @param b
 * @param a
 */
void Strcat(char b[], char a[]) {
    int i = 0;
    int j = 0;
    while (b[j])j++;
    while (b[j++] = a[i++]);
}

int main() {

    char a[100] = "apples";
    char b[100] = "I like ";

    Strcat(b, a);

    cout << b;

}
